# @Time    :2025/3/27 20:19
# num = 123
# new = list(str(num))  # 先将整数转换为字符串，再转换为列表
# print(new)  # 输出：['1', '2', '3']
# new = [int(char) for char in str(num)]
# print(new)  # 输出：[1, 2, 3]
#
# num = 123
# new = []
# while num > 0:
#     new.append(num % 10)  # 提取最后一位数字
#     num //= 10  # 去掉最后一位
# new.reverse()  # 因为提取顺序是从低位到高位，所以需要反转
# print(new)  # 输出：[1, 2, 3]

list1={1,23,4}
print(sum(list1))

# list1={"12","qw"}
# print(sum(list1))